package com.rescue.forum.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
 * 用户附件下载
 * @TableName forum_article_attachment_download
 */
public class ForumArticleAttachmentDownload implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 文件ID
     */
    @NotBlank(message = "[文件ID]不能为空")
    @Size(max = 15, message = "编码长度不能超过15")
    @ApiModelProperty("文件ID")
    private String fileId;
    /**
     * 用户id
     */
    @NotBlank(message = "[用户id]不能为空")
    @Size(max = 15, message = "编码长度不能超过15")
    @ApiModelProperty("用户id")
    private Integer userId;
    /**
     * 文章ID
     */
    @NotBlank(message = "[文章ID]不能为空")
    @Size(max = 15, message = "编码长度不能超过15")
    @ApiModelProperty("文章ID")
    private String articleId;
    /**
     * 文件下载次数
     */
    @ApiModelProperty("文件下载次数")
    private Integer downloadCount;

}
